package com.jsb.common.config;



public class Const {
	//定义数字常量
	public static final String ONE = "1";
	public static final String TWO = "2";
	public static final String THREE = "3";
	public static final String FOUR = "4";
	public static final String FIVE = "5";
	
	public static final String KEY = "ocm.jsb.back.key.1114";
	/**
	 * 咨询师审核
	 */
	public static final String CHECK_PASSED = Global.getConfig("adviser.status.checkpass");
	public static final String CHECK_NOPASS = Global.getConfig("adviser.status.checknopass");
	/**
	 * 用户角色
	 */
	public static final String ROLE_GENERAL = Global.getConfig("role.general");     //普通用户
	public static final String ROLE_COUNSELOR = Global.getConfig("role.counselor"); //咨询师
	public static final String ROLE_FREEZE = Global.getConfig("role.freeze"); //被冻结
	
	/**
	 * 回答状态
	 */
	public static final String ANSWERINIT = Global.getConfig("answer.init");  //回答初始状态
	public static final String REPORTED = Global.getConfig("answer.reported");//回答被举报
	public static final String PASSREPORT = Global.getConfig("answer.reportpass");  //举报审核通过
	public static final String NOPASSREPORT = Global.getConfig("answer.reportnopass");//举报审核未通过
	/**
	 * 问题结束状态
	 */
	public static final String QUESTIONINIT = Global.getConfig("question.init"); //问题初始状态
	public static final String QUESTIONSTOP = Global.getConfig("question.stop"); //问题悬赏结束
	/**
	 * 分钱比例
	 */
	public static final double REWARDSCALE = Double.valueOf((Global.getConfig("reward.scale")));
	/**
	 * 被举报该次数后冻结用户
	 */
	public static final int COUNT = Integer.valueOf(Global.getConfig("report.count"));
	/**
	 * 回调域名
	 */
	public static final String NOTIFYSERVER = Global.getConfig("notify.server");
	
	/**
	 * 评论类型 文章、回答
	 */
	public static final String DISCUSSARTICLE = "1";
	public static final String DISCUSSANSWER = "2";
	
	/**
	 * 发送通知短信场景
	 */
	public static final String SCENE_ANSWER_ADOPT = "XS1";   //悬赏采纳
	public static final String SCENE_ANSWER_ENOUGH = "XS2";  //答案够三个
	public static final String SCENE_QUESTION_TOEND = "XS3"; //问题即将到期
	public static final String SCENE_REDBAG_REWARD = "DS1";  //红包打赏
	
	public static final String SCENE_COUNSELOR_PASS = "ZXP1"; //咨询师审核通过
	public static final String SCENE_COUNSELOR_NOPASS = "ZXP2";//咨询师审核不通过
	public static final String SCENE_ANSWER_ADOPTCOMFORT = "XS4";//采纳答案  安慰通知
	/**
	 * 验证码短信
	 */
	public static final String SCENE_USER_REGISTER = "UR";    //采纳答案通知被采纳人
	public static final String SCENE_USER_FINDPWD = "UF";   //回答满三个
	/**
	 * 是否是debug模式  0 true 
	 * @return
	 */
	public static final boolean isDebug(){
		return "0".equals(Global.getConfig("backdebug"));
	}
	/**
	 * 提现IP
	 */
	public static final String WITHDRAWIP = Global.getConfig("withdraw.ip");
	
	/**
	 * 企业付款证书路径
	 * @return
	 */
	public static String getCertPah(){
		String path = "";
		 String osName = System.getProperties().getProperty("os.name").toLowerCase();
         if(osName.contains("windows")){
             path =  Global.getConfig("windows.cert");
         }else if(osName.contains("linux")){
             path =  Global.getConfig("linux.cert");
         }
         return path;
	}
	
	// 红包
	public static final String REDENVELPES_TTK = "ttk";
	public static final String REDENVELPES_REWARD = "reward";
	public static final String REDENVELPES_REGISTER="regist";
	public static final String REDENVELPES_SHARE="share";
	public static final String REDENVELPES_NEWYEAR="newyear";//新年红包
	public static final String REDENVELPES_MEDAL="medal";
	
	public static void main(String[] args) {
		String status = Global.getConfig("adviser.status.checking");
		System.out.println(status);
	}
}
